snippet koa2.router.tpl
	import Router from 'koa-router'
	import $1 from '../services/${1:categorySrv}'

	const router = Router()
	router.prefix('/category')

	router.post('/add', async (ctx, next) => {
		await $1.add(ctx)
	})

	router.get('/findAll', async (ctx, next) => {
		await $1.findAll(ctx)
	})

	router.post('/findById', async (ctx, next) => {
		await $1.findById(ctx)
	})

	router.post('/update', async (ctx, next) => {
		await $1.update(ctx)
	})

	router.post('/delete', async (ctx, next) => {
		await $1.delete(ctx)
	})

	export default router
